Skip to content

Deployment ​

Preparation: ​

What you need to have before deploying Mary

  1. Bun.js must be installed
  2. You must have a NagaAI key

Deployment: ​

Cloning the Repository ​

  1. Clone Mary's Repository https://codeberg.org/Better_Look_Next_Time/Mary

  2. Run the command:

bash
bun install

Connecting Keys ​

There are two options for where the keys will come from (from the .env file or from environment variables)

From the .env file ​

  1. Create a .env file in Mary's directory
  2. Write this there (insert your data)
env
# Open AI
NAGA_KEY = "Keys_NagaAI"
NAGA_BASE_URL = "https://api.naga.ac/v1"
--
// Discord Bot
DISCORD_TOKEN = "DISCORD_token"

From environment variables, run the commands ​

bash
export NAGA_KEY=keys_NagaAI
export NAGA_BASE_URL=https://api.naga.ac/v1
export DISCORD_TOKEN=Discord_tokens

Running Mary ​

Run Mary with the command

bash
bun run index.ts